import Vue from 'vue';
export const state = Vue.observable({
  count: 0,
  fun: function () {},
});

export const mutations = {
  setCountAdd1() {
    state.count++;
  },
  setFun(fn) {
    state.fun = fn;
  },
  runFun() {
    state.fun();
  },
};

